<div id="shoe_show_edit_div" class="am-g" style="height: 100%;">
    <div class="am-u-sm-4" style="padding: 0; border-right: 1px solid #DEDEDE;height: 100%;">
        <div id="shoe_show_edit_div_introd" class="web-work-edit-div">
            <div class="web-work-edit-tittle">
                <b class="web-main-color">评论内容</b>
            </div>
            <div class="web-work-edit-content">
                <textarea id="shoe_show_edit_content_introd"
                          placeholder="和大家分享一下你的鞋吧（点击编辑）"><?php if (isset($shoeShowMsg)) echo $shoeShowMsg->Introd; ?></textarea>
            </div>
        </div>
    </div>
    <div class="am-u-sm-8" style="padding: 0;height: 100%;">
        <div class="web-work-edit-tittle">
            <b class="web-main-color">图片编辑</b>
        </div>
        <div id="img_add_o"
             style="padding-top: 100px; width:100%;height:350px;text-align:center;<?php if (isset($shoeShowMsg) && $shoeShowMsg->Picture != '') echo 'display:none;' ?>">
            <a onclick="img_add_trig()">
                <div style="margin-left: auto; margin-right: auto; padding-top: 23px;background-color: #29b6f6; border-radius: 100%; height: 70px; width: 70px;">
                    <i style="color: white;" class="am-icon-photo am-icon-md"></i>
                </div>
                <div style="height: 20px;"></div>
                <div class="app-gray-color am-text-xs">最多9张图,每张保持在1M以内</div>
            </a>
        </div>
        <div id="img_big_demo"
             style="margin: 10px; <?php if (!(isset($shoeShowMsg) && $shoeShowMsg->Picture != '')) echo 'display:none;' ?>">
            <img style="width: 100%; height: auto;" src="<?php if (isset($shoeShowMsg) && $shoeShowMsg->Picture != '') {
                $shoeShowImgList = explode(";", $shoeShowMsg->Picture);
                $shoeShowImg = make_img_name::make_img_mini_name($shoeShowImgList[0]);
                echo "{$CfgPara->httproot}/shoe_show_pic/{$shoeShowImg}";
            } ?>"/>
        </div>
        <div id="img_list_demo" style="padding:0 10px;<?php if (!isset($shoeShowImgList)) echo 'display:none;' ?>">
            <?php
            if (isset($shoeShowImgList)) {
                $shoeShowImgCount = 0;
                foreach ($shoeShowImgList as $imgName) {
                    if (isset($imgName) && $imgName != '') {
                        $shoeShowImg = make_img_name::make_img_mini_name($imgName);
                        if ($shoeShowImgCount == 0) {
                            $img_class = 'app-img-border-act';
                        } else {
                            $img_class = 'app-img-border-dis';
                        }
                        echo "<img data-file-name='server|{$imgName}' onclick='img_sele_change(this)' class='app-img-preview app-img-border {$img_class}' src='{$CfgPara->httproot}/shoe_show_pic/{$shoeShowImg}' />";
                        $shoeShowImgCount++;
                    }
                }
            }
            ?>
        </div>
        <div id="img_edit_btn"
             style="height:38px;padding:10px;<?php if (!isset($shoeShowImgList)) echo 'display:none;' ?>">
            <button class="am-fl am-btn am-btn-xs am-radius am-btn-success" style="margin-right:5px"
                    onclick="img_add_trig()">
                <i class="am-icon am-icon-plus"></i>添加
            </button>
            <button class="am-fl am-btn am-btn-xs am-radius am-btn-danger" onclick="img_edit_dele()">
                <i class="am-icon am-icon-minus"></i>删除
            </button>
            <span class="am-fr"><span
                        id="img_count"><?php if (isset($shoeShowImgCount)) echo $shoeShowImgCount; else echo '0'; ?></span>/9</span>
        </div>
    </div>
</div>
<div id="shoe_show_edit_toolbar" style="width:100%">
</div>
<form id="upload_img_form" style="display:none" action="<?php echo $CfgPara->httproot ?>/index.php" method="post"
      enctype="multipart/form-data">
    <input name="controller" type="text" value="shoe_show_edit"/>
    <input name="shoe_show_id" type="text"
           value="<?php if (isset($shoeShowMsg)) echo $shoeShowMsg->Id; else echo '0'; ?>"/>
    <input name="work_id" type="text"
           value="<?php if (isset($InputData['work_id'])) echo $InputData['work_id']; else echo '0'; ?>"/>
    <input name="introd" type="text" value=""/>
    <input name="shoe_show_state" type="text" value=""/>
    <input name="shoe_show_img_names" type="text" value=""/>
    <input name="img_upload[]" type="file" onchange="img_show_change(this)"/>
</form>